Current Location: Home> Function Categories> getdate

getdate

Get date/time information
Name:getdate
Category:Date and time
Programming Language:php
One-line Description:Returns the date/time information of a time stamp or the current local date/time.

Definition and usage

The getdate() function returns the date/time information of a certain timestamp or the current local date/time.

Example

Returns the date/time information of the current local date/time:

 <?php
print_r ( getdate ( ) ) ;
?>

Try it yourself

grammar

 getdate ( timestamp ) ;
parameter describe
timestamp Optional. Specifies Unix timestamps, integer values. The default is the current local time (time()).
Similar Functions
Popular Articles